package com.fram.service.admin;

import com.fram.bean.sys.PageBean;
import com.fram.common.exception.ProException;
import com.fram.entity.Keyword;
import com.fram.entity.KeywordAnswer;
import com.github.pagehelper.PageInfo;

/** 关键字解答后台 **/
public interface KeywordsService {
	// 增加
	public void add(Keyword request) throws ProException;

	// 增加回答
	public void answerAdd(KeywordAnswer request) throws ProException;

	// 查看问题 列表
	public PageInfo<Keyword> list(PageBean<Keyword> request) throws ProException;

	// 查看 答 列表
	public PageInfo<KeywordAnswer> ansuerList(PageBean<KeywordAnswer> request) throws ProException;

	// 详情
	public Keyword details(Long id) throws ProException;

	// 答案详情
	public KeywordAnswer answerDetails(Long id) throws ProException;

	// 修改
	public void update(Keyword request) throws ProException;

	// 答案修改
	public void answerUpdate(KeywordAnswer request) throws ProException;
}
